home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / imap / ANSI / c-client / os_mnt.h < prev    next >
C/C++ Source or Header  |  1996-02-07  |  2KB  |  90 lines

  1. /*
  2.  * Program:    Operating-system dependent routines -- Mint version
  3.  *
  4.  * Author:    Mark Crispin
  5.  *        6158 Lariat Loop NE
  6.  *        Bainbridge Island, WA  98110-2098
  7.  *        Internet: MRC@Panda.COM
  8.  *
  9.  * Date:    23 December 1993
  10.  * Last Edited:    7 February 1996
  11.  *
  12.  * Copyright 1996 by Mark Crispin
  13.  *
  14.  *  Permission to use, copy, modify, and distribute this software and its
  15.  * documentation for any purpose and without fee is hereby granted, provided
  16.  * that the above copyright notice appears in all copies and that both the
  17.  * above copyright notices and this permission notice appear in supporting
  18.  * documentation, and that the name of Mark Crispin not be used in advertising
  19.  * or publicity pertaining to distribution of the software without specific,
  20.  * written prior permission.  This software is made available "as is", and
  21.  * MARK CRISPIN DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO
  22.  * THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF
  23.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL
  24.  * MARK CRISPIN BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
  25.  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  26.  * WHETHER IN AN ACTION OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT
  27.  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  28.  * THIS SOFTWARE.
  29.  *
  30.  */
  31.  
  32. #include <stdlib.h>
  33. #include <unistd.h>
  34. #include <string.h>
  35. #define _U_TIME_H        /* damn cretins */
  36. #include <sys/types.h>
  37. #include <sys/dir.h>
  38. #include <sys/file.h>
  39. #include <fcntl.h>
  40. #include <time.h>        /* for struct tm */
  41. #include <Desk.h>
  42. #include <Devices.h>
  43. #include <Errors.h>
  44. #include <Events.h>
  45. #include <Fonts.h>
  46. #include <Memory.h>
  47. #include <Menus.h>
  48. #include <ToolUtils.h>
  49. #include <Windows.h>
  50. #include <AddressXlation.h>
  51.  
  52.  
  53. extern short resolveropen;    /* make this global so caller can sniff */
  54.  
  55.  
  56. /* Different names, equivalent things in BSD and Mint */
  57.  
  58. #define L_SET SEEK_SET
  59. #define L_INCR SEEK_CUR
  60. #define L_XTND SEEK_END
  61.  
  62.  
  63. /* This is the traditional definition of utime() */
  64.  
  65. int utime (char *path,time_t timep[2]);
  66.  
  67.  
  68. /* For writev() emulation */
  69.  
  70. struct iovec {
  71.   char *iov_base;
  72.   unsigned long iov_len;
  73. };
  74.  
  75. char *strerror (int n);
  76.  
  77.  
  78. #include "env_unix.h"
  79. #include "fs.h"
  80. #include "ftl.h"
  81. #include "nl.h"
  82. #include "tcp.h"
  83.  
  84. #define TCPDRIVER "\04.IPP"
  85.  
  86. long gethostid (void);
  87. void tcp_dns_result (struct hostInfo *hostInfoPtr,char *userDataPtr);
  88. long wait (void);
  89. long random (void);
  90.